﻿using Microsoft.AspNetCore.Mvc;
using mozhi.smarterp.Finance.Files;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp;

namespace mozhi.smarterp.Finance.Ieps
{
    [RemoteService]
    [Route("api/v1/leps/print")]
    public class PrintController :BaseController
    {
        private IPrintAppService _printAppService;

        public PrintController(IPrintAppService printAppService)
        {
            _printAppService = printAppService;
        }

        [HttpPost]
        public async Task<FileDto> GetPrintFileAsync(PrintQueryDto query)
        {
            var result = await _printAppService.PrintAsync(query);

            return result;
        }
    }


}
